{literal}
<style>
	#album {
		position: relative;
		display: inline;
		float: left;
		vertical-align: absmiddle;
		margin-right: 10px;
	}
	
	#album #photo {
		height: 172px;
		width: 172px;
		background-position: center;
		background-repeat: no-repeat;
		cursor: pointer;
	}
	
</style>
{/literal}
{foreach from=$PhotoLibrary_Albums item=a}

{if $a->canRead()}
<div id="album">

	<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="29" width="25"><img src='{$Sys_DesignBasePath}/images/photoFrame/TL.png' border=0 style="display:block;"></Td>
		<td align="right" style="background:url('{$Sys_DesignBasePath}/images/photoFrame/TT.png') repeat-x;"><img src="{$Sys_DesignBasePath}/images/photoFrame/TTR.png" border=0 style="display:block;"></td>
		<td width="26"><img src='{$Sys_DesignBasePath}/images/photoFrame/TR.png' border=0 style="display:block;"></Td>
	</tr>
	<Tr>
		<td valign="top" style="background:url('{$Sys_DesignBasePath}/images/photoFrame/LL.png') repeat-y;"><img src='{$Sys_DesignBasePath}/images/photoFrame/LLT.png' border=0 style="display:block;"></Td>	
		<td bgcolor="#FFFFFF"><a href="{$Sys_CurrentPageURL}&pkPhotoLibrary={$a->pkPhotoLibrary}&method=detail" title="{$a->title}" ><div id="photo" style="background-image: url('{$PhotoLibrary_PhotoPath}/{$a->pkPhotoLibrary|string_format:"%04s"}/{$a->randomPhoto|string_format:"%09s"}_thumb.jpg');"></div></a></TD>
		<td valign="bottom" style="background:url('{$Sys_DesignBasePath}/images/photoFrame/RR.png') repeat-y;"><img src='{$Sys_DesignBasePath}/images/photoFrame/RRB.png' border=0 style="display:block;"></Td>
	</Tr>
	<tr>
		<td height="29" width="25"><img src='{$Sys_DesignBasePath}/images/photoFrame/BL.png' border=0 style="display:block;"></Td>
		<td align="left" height="29"  style="background:url('{$Sys_DesignBasePath}/images/photoFrame/BB.png') repeat-x;"><img src='{$Sys_DesignBasePath}/images/photoFrame/BBL.png' border=0 style="display:block;"></td>
		<td width="26"><img src='{$Sys_DesignBasePath}/images/photoFrame/BR.png' border=0 style="display:block;"></Td>
	</tr>
	</table>
		
</div>
{/if}

{/foreach}